package org.soc.timesheet.controller;

import org.soc.timesheet.domain.Emails;
import org.soc.timesheet.server.domain.service.EmailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/emails")
public class EmailController {
	
	@Autowired
	EmailsService emailService;

	@RequestMapping(value="/create",headers="Accept=application/json",method={RequestMethod.PUT} )
	@ResponseBody
	public ResponseEntity<String> create(@RequestBody Emails emails) throws Exception{
		System.out.println("EmailController.create()");
		System.out.println(emails.getEmail());
		return new ResponseEntity<String>("",HttpStatus.OK);
	}
}
